﻿

using System;
using Demo.Domain;
using System.Data.Entity.ModelConfiguration;
using System.ComponentModel.DataAnnotations.Schema;

namespace Demo.Domain
{
    public class RoleModuleActionMapping:EntityTypeConfiguration<RoleModuleAction>
    {
        public RoleModuleActionMapping()
        {
            this.HasKey(r => r.RoleModuleActionID).Property(r => r.RoleModuleActionID).IsRequired().HasDatabaseGeneratedOption(DatabaseGeneratedOption.Identity);
            this.Property(r => r.RoleModuleID).IsRequired();
            this.Property(r => r.ActionID).IsRequired();
        }
    }
}
